import 'dart:convert';

import '../generated/json/base/json_field.dart';
import '../generated/json/borrow_entity.g.dart';

@JsonSerializable()
class BorrowEntity {

	@JSONField(name: "reader_no")
	String? readerNo;
	@JSONField(name: "reader_name")
	String? readerName;
	@JSONField(name: "book_no")
	String? bookNo;
	@JSONField(name: "book_title")
	String? bookTitle;
	@JSONField(name: "ready_return_date")
	String? readyReturnDate;
	@JSONField(name: "borrow_date")
	String? borrowDate;
  
  BorrowEntity();

  factory BorrowEntity.fromJson(Map<String, dynamic> json) => $BorrowEntityFromJson(json);

  Map<String, dynamic> toJson() => $BorrowEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}